package com.prs.crm.dao.cqunicom.impl;

import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateCallback;

import com.prs.crm.dao.cqunicom.OrderConnectingDao;
import com.prs.crm.dao.impl.BaseDaoImpl;
import com.prs.crm.domain.cqunicom.OrderConnecting;


/**
 * @author  WangTing
 *
 * 创建时间：2011-3-17
 */

public class OrderConnectingDaoImpl extends BaseDaoImpl<OrderConnecting> implements OrderConnectingDao {

	@Override
	public Integer delOrderConnecting() {
		return (Integer) this.getHibernateTemplate().execute(
			      new HibernateCallback() {   
						public Object doInHibernate(Session session) throws HibernateException {
							Query query = session.createQuery("delete from OrderConnecting");
							return query.executeUpdate();
				        }   
				 } );
	}

}
